package org.jadapter.examples.payment;

/**
 * User: pjesi
 * Date: Jan 18, 2011
 * Time: 11:03:43 PM
 */
public class RansomPayment implements Payment {


    private Ransom ransom;

    public RansomPayment(Ransom ransom) {
        this.ransom = ransom;
    }


    public void pay() {
        long amountToPay = ransom.getCash();
        System.out.println("Amount payed is " + amountToPay);
    }
}
